package edu.rjxy.xjdx.emps.common.domain;

public class Employee {
    private int id;
    private String name;
    private String personNumber;
    private String sex;
    private double sal;

    public Employee() {
    }

    public Employee(int id, String name, String personNumber, String sex, double sal) {
        this.id = id;
        this.name = name;
        this.personNumber = personNumber;
        this.sex = sex;
        this.sal = sal;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPersonNumber() {
        return personNumber;
    }

    public void setPersonNumber(String personNumber) {
        this.personNumber = personNumber;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public double getSal() {
        return sal;
    }

    public void setSal(double sal) {
        this.sal = sal;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", personNumber='" + personNumber + '\'' +
                ", sex='" + sex + '\'' +
                ", sal=" + sal +
                '}';
    }
}
